'$c_date' ORDER by Lab_Report_ID DESC");
if(mysqli_num_rows($result1)==0)
{
echo "No Active assignments for this course so far.";
} else { while($row = mysqli_fetch_assoc($result1)) {
$Course_ID=$row['Course_ID'];
$title=$row['Title'];
$ins=$row['Instructions'];
$posted=$row['Posted_Date'];
$deadline=$row['Deadline'];
$att1=$row['Attachment_link_1'];
$att2=$row['Attachment_link_2'];
$att3=$row['Attachment_link_3'];
$att4=$row['Attachment_link_4'];
$labid=$row['Lab_Report_ID'];
$type=$row['Type'];
if($type=="Group"){
$resultx1 = mysqli_query($con,"SELECT Course_Group_id FROM `course_groups_table` WHERE Group_Leader=$student_id and Course_id=$Course_ID");
while($row = mysqli_fetch_assoc($resultx1)) {$group_id=$row['Course_Group_id'];}
if($group_id<1)
{
echo"
This Lab report can only be submitted by Group Admin
";
return;
}
}
$full_link="
$att1";
if($att2!=""){
$full_link= $full_link."|
$att2";
}
if($att3!=""){
$full_link= $full_link."|
$att3";
}
if($att4!=""){
$full_link= $full_link."|
$att4";
}
echo "
";
// echo "
// $title
$ins
//
Posted : $posted Deadline : $deadline
Attachments : $full_link
//
";
echo "";
}}
}
?>